a, b, n = map(int, input().split())
s = ""
a = a % b
while len(s) < n + 2:
    a = a * 10
    s += str(a // b)
    a = a % b

print(s[-3:])